<?php
ini_set('session.use_trans_sid', 1);
session_start();
if(isset($_SESSION['name'])){
    
    if ($_SESSION['numButtons'] == 3)	{
echo '<form action="index.php" method="post">';
if ($_SESSION['textfile'] == "family.txt")
    echo '<p> <input type="radio" name="radio" value="0" checked onclick="submit()" title="family text moduleselected"> Familie';
else
    echo '<p> <input type="radio" name="radio" value="0" onclick="submit()" title="select thematic ordered text modules"> Familie';
if ($_SESSION['textfile'] == "eat.txt")
    echo '<input type="radio" name="radio" value="1" checked onclick="submit()" title="eating and drinking text module selected"> Essen und Trinken';
else
    echo '<input type="radio" name="radio" value="1" onclick="submit()" title=" select thematic ordered text modules"> Essen und Trinken';
if ($_SESSION['textfile'] == "bed.txt")
    echo '<input type="radio" name="radio" value="2" checked onclick="submit()" title="bed and sleeping text module selected"> Bett und Schlafen</p>';
else
    echo '<input type="radio" name="radio" value="2" onclick="submit()" title="select thematic ordered text modules"> Bett und Schlafen</p>';
echo '</form>';

for ( $i=0; $i < $_SESSION['fileLines']; $i++ )      {
echo "<form name=\"myrow".$i."\"  id=\"myrow".$i."\"  action=\"index.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"myrow\" value=\"$i\">";
echo "<input class=\"myrows\" title=\"click or touch here to submit in chat, edit text module and store it with newline!\" name=\"mytext\" id=\"mytext".$i."\" type=\"text\"  onclick=\"mysubmit($i)\" size= \"33\" value=\"";echo $_SESSION['text'][$i];echo "\">";
echo "</form>";
}
    }
    else echo " ";
    }
    
    ?>
